package wortubung.inflection;

import java.util.HashSet;

public class UnknownDeclensionException extends RuntimeException {

	private static HashSet<String> badWords = new HashSet<String>();

	private UnknownDeclensionException(String word) { super(word); }
	
	public static void badDeclension(String word) throws UnknownDeclensionException {
		if (badWords.contains(word))
			return;
		badWords.add(word);
		throw new UnknownDeclensionException(word);
	}
}
